package com.zzw.basic.classloader;

import java.lang.reflect.Proxy;

public class MyProxyFactory {

	public static Object getProxy(Object target){
		DogInvocationHandler handler = new DogInvocationHandler(target);
		return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), handler);
	}
}
